package vn.vnvas.xoso.trungnam.thongke;

import vn.vnvas.xoso.R;
import vn.vnvas.xoso.utils.WebService_ThongKe;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;

public class ThongKeChiTiet_Trungnam extends Activity{
	
	private TextView tvHayvetheongay;
	private WebService_ThongKe mWebService;
	
	private String jString,menuId,tinhId;
	
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.layout_thongke);
		
		tvHayvetheongay =(TextView)findViewById(R.id.tvHayveTheongay);
		
		Bundle extras = getIntent().getExtras();
		menuId = extras.getString("menu_Id");
		tinhId = extras.getString("tinh_Id");
		Toast.makeText(getBaseContext(), "Da chon:"+menuId, Toast.LENGTH_LONG).show();
		
		mWebService = new WebService_ThongKe();
		
		try {
			jString = mWebService.WsGETTHONGKETHEONGAY("GetDataFromMenuThongKe", "MenuID" , menuId, "matinh", tinhId);	
		} catch (Exception e) {
			// TODO: handle exception
		}
		
		tvHayvetheongay.setText(jString);
		
		
	}

}
